package cz.apnetis.fitweb.server;

import java.util.List;

import com.google.appengine.api.datastore.Key;

public interface GenericDAO<T, PK> {

  boolean exists(PK id);
  T get(PK id);
  T getByKey(Key id);
  List<T> getAll();
  List<T> getAllDistinct();
  List<T> executeQuery(String queryName, Object... params);
  void remove(PK id);
  T save(T object);

}
